#ifndef __TwArray_H__
#define __TwArray_H__

#include "TwDefines.h"

template<typename T> class TwArray
{
public:
	TwArray();
	virtual ~TwArray();

	T*		base();
	int		size();
	bool	empty();
	void	assign(int size);
	void	swap(TwArray<T>& rhs);
	void	clear();
	T&		operator[](int idx);

protected:
	T*		_base;
	int		_size;
};

#include "TwArray.inl"

#endif //__TwArray_H__